<?php
error_reporting(E_ALL);
// header("Content-Type:text/json;charset=utf-8");
header("Content-Type:text/html;charset=utf-8");
date_default_timezone_set("Asia/Shanghai");
var_dump(date("Y-m-d h:i:s"));
phpinfo();
var_dump(time());
echo bccomp('1', '2') . "\n";   // -1
echo bccomp('1.00001', '1', 3); // 0
function getSubstr($str, $leftStr, $rightStr){
	$left = strpos($str, $leftStr);
	$right = strpos($str, $rightStr,$left);
	if($left < 0 or $right < $left) return '';
	return substr($str, $left + strlen($leftStr), $right-$left-strlen($leftStr));
}
?>